package com.videoweb.service.impl;

import com.videoweb.entity.UserRole;
import com.videoweb.mapper.UserRoleMapper;
import com.videoweb.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lmr
 * @since 2025-05-17
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Autowired
    UserRoleMapper userRoleMapper;

    @Override
    public int add(UserRole userRole) {
        int rows =userRoleMapper.insert(userRole);
        return rows;
    }
}
